
#ifndef MODEL_ENTITY_H
#define MODEL_ENTITY_H

#include "BaseEntity.h"

class CModelEntity : public CBaseEntity
{
	
public:
	
	virtual void onTick()
	{
		
		//Keep the SceneNode up to date with the physics data
		m_SceneNode->setPos( m_Solid->getPos() );
		m_SceneNode->setAngle( m_Solid->getAngle() );
		
	}
	
private:
	
	scene::CSceneNode*  	m_SceneNode;
	physics::CSolid*  		m_Solid;
	
};

#endif //MODEL_ENTITY
